<template>
    <div class="message">

        <div class="topBox">
            <div class="titleBox">
                <div class="leftbox">
                    <div class="titleitem">课外阅读-2</div>
                    <div class="ms">自由模式</div>
                </div>

                <div>
                    已有0人完成练习，还有1人未完成
                </div>
            </div>

            <div class="dateTime">
                <div class="dateTime_left">
                    <div class="lable">
                        布置时间：
                    </div>
                    <div class="value">
                        7月21日 星期日
                    </div>
                </div>
                <div class="addbtn">
                    加入题筐
                </div>
            </div>

            <div class="userList">
                <div class="lable">布置对象：</div>
                <div class="avatarList">
                    <img class="useravatar" v-for="(item, index) in 9" src="@/static/image/zyimg.png" alt="">
                </div>
            </div>

        </div>


        <div class="questionContent">

            <div class="lableContent">
                <div style="width: 5%;">
                    序号
                </div>
                <div style="width: 65%;">
                    大题名称
                </div>
                <div style="width: 15%;">
                    达标率
                </div>
                <div style="width: 15%;">
                    操作
                </div>
            </div>


            <div class="listtable">
                <div class="listitem" v-for="(item, index) in 5" :key="index">
                    <div style="width: 5%;">
                        {{ index + 1 }}
                    </div>
                    <div class="question" style="width: 65%;">
                        <img src="@/static/image/tx.png" alt="" srcset="">
                        <div class="title">
                            还原单词
                        </div>
                        <div class="desc">
                            1A Unit9 Lesson17 说一说 PartC 新 
                        </div>
                    </div>

                    <div style="width: 15%;">
                        99%
                    </div>
                    <div style="width: 15%;color: #3FB9E2;">
                        删除
                    </div>
                </div>

            </div>

        </div>





    </div>
</template>
<script>
export default {
    data() {
        return {

        }
    },
    methods: {

    }
}
</script>

<style scoped lang="scss">
.message {
    width: 100%;
    padding-top: 16px;

    .topBox {
        width: 100%;
        padding: 22px;
        box-sizing: border-box;
        background-color: #ffffff;

        .titleBox {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: #333333;
            line-height: 14px;
            display: flex;
            align-items: center;

            .leftbox {
                display: flex;
                align-items: center;
                margin-right: 20px;

                .titleitem {
                    font-weight: 550;
                    font-size: 14px;
                    color: #333333;
                }

                .ms {
                    font-weight: 500;
                    font-size: 12px;
                    color: #3FB9E2;
                    line-height: 20px;
                    margin-left: 5px;
                }
            }
        }

        .dateTime {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .dateTime_left {
                display: flex;
                align-items: center;

                .lable {
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 12px;
                    color: #777777;
                    line-height: 14px;
                }

                .value {
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 14px;
                    color: #333333;
                    line-height: 16px;
                }
            }

            .addbtn {
                width: 120px;
                height: 40px;
                border-radius: 4px 4px 4px 4px;
                border: 1px solid #4BA840;
                font-family: PingFang SC, PingFang SC;
                font-weight: 500;
                font-size: 14px;
                color: #4BA840;
                line-height: 40px;
                text-align: center;
                cursor: pointer;
            }
        }

        .userList {
            display: flex;
            align-items: center;
            margin-top: 8px;

            .lable {
                font-family: PingFang SC, PingFang SC;
                font-weight: 400;
                font-size: 12px;
                color: #777777;
                line-height: 14px;
            }

            .avatarList {
                display: flex;
                margin-left: 20px;

                .useravatar {
                    width: 40px;
                    height: 40px;
                    border-radius: 40px;
                    cursor: pointer;
                    margin-left: -10px;
                    transition: transform 0.3s ease;
                }

                .useravatar:hover {
                    transform: scale(1.3);
                }
            }

        }


    }



    .questionContent {
        margin-top: 26px;
        width: 100%;
        background-color: #ffffff;
        padding: 20px;
        box-sizing: border-box;

        .lableContent {
            display: flex;
            align-items: center;
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: rgba(0, 0, 0, 0.4);
            line-height: 20px;
        }

        .listtable {
            .listitem {
                display: flex;
                align-items: center;
                font-family: PingFang SC, PingFang SC;
                font-weight: 400;
                font-size: 12px;
                color: rgba(0, 0, 0, 0.9);
                line-height: 20px;
                height: 48px;
                border-top: 1px solid #E7E7E7;
                cursor: pointer;

                .question {
                    display: flex;
                    align-items: center;

                    img {
                        width: 18.99px;
                        height: 18.99px;
                    }

                    .title {
                        margin: 0 10px;
                    }

                    .desc {
                        color: #4BA840;
                    }
                }
            }

            .listitem:hover {
                background-color: #EAF9E8;
            }
        }
    }
}
</style>